package com.fire.social.service.impl;

import com.fire.social.mapper.LikeMapper;
import com.fire.social.service.LikeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class LikeServiceImpl implements LikeService {

    @Autowired
    private LikeMapper likeMapper;

    @Override
    public Integer likeHobby(String account, Long hobbyId) {
        return likeMapper.likeHobby(account, hobbyId);
    }

    @Override
    public Integer unlikeHobby(String account, Long hobbyId) {
        return likeMapper.unlikeHobby(account, hobbyId);
    }
}
